﻿@using System.Globalization
@model Scrubblet.FrontEnd.Models.NewGameModel

@using (Html.BeginForm("StartNewGame", "Home"))
{
    <div>
        @Html.TextBoxFor(t => t.Name)
    </div>
    <div>
        @Html.ListBoxFor(t => t.SelectedBoard, Model.Boards.Select(t => new SelectListItem {Text = t.Name, Value = t.Id.ToString(CultureInfo.InvariantCulture)}))
    </div>
    <div>
        @Html.ListBoxFor(t => t.SelectedAlphabet,  Model.Alphabets.Select(t => new SelectListItem {Text = t.Name, Value = t.Id.ToString(CultureInfo.InvariantCulture)}))
    </div>
    <div>
        <input type="submit" value="Start"/>
    </div>
}